import 'package:flutter/cupertino.dart';
import 'package:lepig/model/ProductInfoModel.dart';
import 'lib/HttpManager.dart';
import 'lib/NWApi.dart';
import 'lib/NWMethod.dart';

//获取商品详情
Future<ProductInfoModel> HttpSelectProductDetails(BuildContext context,{String type,String productId}) async {
  Map responseBody = await HttpManager()
      .request(NWApi.selectProductDetails+"/"+type+"/"+productId, NWMethod.GET,context: context);
  Map data = responseBody["data"];

  return ProductInfoModel.fromJson(data);
}


